<%@page import="java.text.SimpleDateFormat"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%@ page import="java.util.Date" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
 <link rel="stylesheet" href="./css/Inf.css"/>
    <link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/4.7.0/css/font-awesome.css">
</head>
 <body style="background: rgb(254,238,189);">
<% 
	String order_fruit = request.getParameter("order_fruit");
    String stock=request.getParameter("stock");
    String price=request.getParameter("price");
%>
<form action="SalerServlet?method=addOrder" method="post">

<div id="inf-box">
		<h1>填写购买信息</h1>
		<div class="form">
			<div class="item">
			   <i style="font-size:24px"></i>
			   
			  用户名:<input type="text" name="order_buyer"  value="${requestScope.order_buyer }"> 	   
			</div>
			<div class="item">
			   <i  style="font-size:24px"></i>
			   手机号码:<input type="text" name="order_phone" value="${requestScope.order_phone }"> 
			</div>
			<div class="item">
			   <i  style="font-size:24px"></i>
			   地址:<input type = "text" name = "order_address" value="${requestScope.order_address}"><br>
			</div>
			
			<div class="item">
			   <i  style="font-size:24px"></i>
			  水果:<input type = "text" name = "order_fruit" readonly value="<%=order_fruit%>"><br>
			</div>
			
			<div class="item">
			   <i  style="font-size:24px"></i>
			  价格:<input type = "text" name = "order_price" readonly value="<%=price%>"><br>
			</div>
			
			<div class="item">
			   <i  style="font-size:24px"></i>
			  购买数量(kg):<input type = "text" name = "order_sum"><br>
			  <input type='hidden' name='stock' value='<%=stock%>'/>
			</div>
		</div>
		
		<button>购买</button>
	
		<input type="reset" value="重置">
	</div>
	
</form>
</body>
</html>